Comment that the column order needs to be kept in sync across two functions
authorFederico Mena Quintero <federico@novell.com>
Fri, 11 Sep 2009 18:08:11 +0000 (13:08 -0500)
committerBenjamin Otte <otte@gnome.org>
Thu, 15 Oct 2009 20:06:18 +0000 (22:06 +0200)
Signed-off-by: Federico Mena Quintero <federico@novell.com>
gtk/gtkfilechooserdefault.c

index 2ffbbc57225ab6e9e54df8ccbc2ee0547639ac22..f6ea9d6d6c9e6354938bbc30543ce39d9b408444 100644 (file)
@@ -4468,6 +4468,8 @@ create_file_list (GtkFileChooserDefault *impl)
   g_signal_connect (selection, "changed",
                    G_CALLBACK (list_selection_changed), impl);
 
+  /* Keep the column order in sync with update_cell_renderer_attributes() */
+
   /* Filename column */
 
   impl->list_name_column = gtk_tree_view_column_new ();
@@ -10029,6 +10031,8 @@ update_cell_renderer_attributes (GtkFileChooserDefault *impl)
   always_sensitive = impl->action != GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER &&
                      impl->action != GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER;
 
+  /* Keep the following column numbers in sync with create_file_list() */
+
   /* name */
   column = gtk_tree_view_get_column (GTK_TREE_VIEW (impl->browse_files_tree_view), 0);
   list = gtk_cell_layout_get_cells (GTK_CELL_LAYOUT (column));